package jmine.tec.scheduling.services.alterar;

import jmine.tec.services.runner.BaseServiceBuilder;

/**
 * @author lundberg
 */
public class UpdateScheduledTaskServiceBuilder extends BaseServiceBuilder {

    public UpdateScheduledTaskServiceBuilder() {
        super(ScheduledTaskService.class);
    }

    public static UpdateScheduledTaskServiceBuilder updateTask(String task) {
        UpdateScheduledTaskServiceBuilder builder = new UpdateScheduledTaskServiceBuilder();
        builder.task(task);
        return builder;
    }

    public UpdateScheduledTaskServiceBuilder task(String value) {
        this.with(ScheduledTaskService.TASK, value);
        return this;
    }

    public UpdateScheduledTaskServiceBuilder description(String value) {
        this.with(ScheduledTaskService.DESCRIPTION, value);
        return this;
    }

    public UpdateScheduledTaskServiceBuilder active(Boolean value) {
        this.with(ScheduledTaskService.ACTIVE, value);
        return this;
    }

    public UpdateScheduledTaskServiceBuilder cron(String value) {
        this.with(ScheduledTaskService.CRON, value);
        return this;
    }

    public UpdateScheduledTaskServiceBuilder condition(String value) {
        this.with(ScheduledTaskService.CONDITION, value);
        return this;
    }

    public UpdateScheduledTaskServiceBuilder action(String value) {
        this.with(ScheduledTaskService.ACTION, value);
        return this;
    }

}
